﻿using badmati.Log.Models;
using badmati.Log.Repository;
using badmati.Log.Website.Custom.Result;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using static badmati.Log.Website.Helper.JsonResultHelper;

namespace badmati.Log.Website.Controllers
{
    public class DiagnosisLogController : Controller
    {
        private IGetDataRepository<DiagnosisRecord> repository = new BLogManager().GetDiagnosisRecordRepository();
        // GET: Log
        public JsonResult Index()
        {
            return GetJson(new { name="pipi"});
        }
        public JsonResult GetAllLoginRecordData()
        {
            var data = repository.GetAllData();
            var d= GetJson(data);
            return d;
        }

    }
}